package com.ssy.lingxi.member.merchant.api.model.vo.paas;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 系统菜单列表批量新增、查询响应VO
 * @author 万宁
 * @version 2.0.0
 * @date 2020-06-18
 */
public class MenuTreeVO implements Serializable {

    private static final long serialVersionUID = -3687071808986689384L;

    public MenuTreeVO(Long id, String title, List<MenuTreeVO> children) {
        this.id = id;
        this.title = title;
        this.children = children == null ? new ArrayList<>() : children;
    }

    /**
     * 菜单的id
     */
    private Long id;

    /**
     * 菜单名称
     */
    private String title;

    /**
     * 子菜单列表
     */
    private List<MenuTreeVO> children;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<MenuTreeVO> getChildren() {
        return children;
    }

    public void setChildren(List<MenuTreeVO> children) {
        this.children = children;
    }
}
